package controller;

import domain.Student;

import java.util.Scanner;

public class OtherStudentController extends BaseStudentController {
    private Scanner sc = new Scanner(System.in);

    /**
     * 键盘录入学生信息
     *
     * @param id 学生id信息
     * @return 学生对象
     */
    @Override
    public Student inputStudentInfo(String id) {
        System.out.println("请输入学生姓名：");
        String name = sc.next();
        System.out.println("请输入学生年龄：");
        String age = sc.next();
        System.out.println("请输入学生生日：");
        String birthday = sc.next();

        // 2.将学生信息装为学生对象并返回
//        Student stu = new Student(id, name, age, birthday);
        return new Student(id, name, age, birthday);
    }
}
